// 增加一个使用Timer的例子
#include "Timer.hpp"
#include <iostream>
#include <thread>

int main()
{
    timer::start();
    std::this_thread::sleep_for(std::chrono::seconds(1));
    std::cout << "First timing: " << timer::stop() << " ms" << std::endl;

    timer::start(); // 重新开始计时
    std::this_thread::sleep_for(std::chrono::seconds(2));
    std::cout << "Second timing: " << timer::stop() << " ms" << std::endl;

    return 0;
}